package mq

import (
	. "mq-apiserver/handler"
	"mq-apiserver/model"
	"mq-apiserver/pkg/errno"
	"strconv"

	"github.com/gin-gonic/gin"
)

// @DeleteUser 删除用户
func DeleteMQUser(c *gin.Context) {
	userId, _ := strconv.Atoi(c.Param("id"))
	if err := model.DeleteMQUser(uint64(userId)); err != nil {
		SendResponse(c, errno.ErrDatabase, nil)
		return
	}
	SendResponse(c, nil, nil)
}

// @DeleteTopic 删除主题
func DeleteTopic(c *gin.Context) {}
